package com.medicalservice.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.medicalservice.entity.Department;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DepartmentMapper extends BaseMapper<Department> {

    Department selectByName(@Param("name") String name);

    Department selectDepartmentById(@Param("id") Integer id);

    List<Department> selectAll(Department department);

    Integer countByStatus(@Param("status") Integer status);
}
